﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace huqiang.Core.HGUI
{
    [Serializable]
    public class HDepth : UIElement
    {
        public enum DepthShape
        {
            Triangle,
            Rectangle,
            Circle
        }
        static float[] Triangle = new float[] { -0.5f, -0.5f, 0, 0.5f, 0.5f, -0.5f };
        static float[] Rectangle = new float[] { -0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f, 0.5f, -0.5f };
        static float[] Circle = new float[] { 0f, 0f, 0f, 0.5f, 0.08682409f, 0.4924039f, 0.1710101f, 0.4698463f, 0.25f, 0.4330127f, 0.3213938f, 
            0.3830222f, 0.3830222f, 0.3213938f, 0.4330127f,  0.25f, 0.4698463f, 0.1710101f, 0.4924039f, 0.08682411f, 0.5f, 3.774895E-08f, 
            0.4924039f, -0.0868241f, 0.4698463f, -0.1710101f, 0.4330127f, -0.25f, 0.3830222f, -0.3213938f, 0.3213938f, -0.3830222f, 0.25f, 
            -0.4330127f, 0.1710101f, -0.4698463f, 0.08682415f, -0.4924039f, 7.54979E-08f, -0.5f, -0.08682411f, -0.4924039f, -0.1710101f, 
            -0.4698463f, -0.25f, -0.4330127f,-0.3213938f, -0.3830222f, -0.3830223f, -0.3213938f, -0.4330127f, -0.25f, -0.4698463f, -0.17101f,
            -0.4924039f, -0.08682407f, -0.5f, 5.96244E-09f, -0.4924039f, 0.08682407f, -0.4698463f, 0.17101f, -0.4330127f, 0.25f, -0.3830222f,
            0.3213938f, -0.3213939f, 0.3830222f, -0.2500001f, 0.4330127f, -0.1710102f, 0.4698463f, -0.08682422f, 0.4924039f };
        public DepthShape shape = DepthShape.Rectangle;
    }
}
